
import { AppComponent } from './app.component';
import { WelcomeComponent } from "./home/welcome/welcome.component";
import { HelpComponent } from "./home/help/help.component";
import { LoginComponent } from "./home/login/login.component";
import { SignupComponent } from "./home/signup/signup.component";
import { MessageComponent } from "./home/message/message.component";
import { OtherComponent } from "./home/other/other.component";

export const appRoutes=[
	
	{
		path:'help',
		component:HelpComponent
	},
	{
		path:'login',
		component:LoginComponent
	},
	{
		path:'signup',
		component:SignupComponent
	},
	{
		path:'message',
		component:MessageComponent
	},
	{
		path:'other',
		component:OtherComponent
	},
	{
		path:'music',
		loadChildren:'./music/music.module#MusicModule'
	},
	{
		path:'article',
		loadChildren:'./article/article.module#ArticleModule'
	},
	{
		path:'user',
		loadChildren:'./user/user.module#UserModule'
	},
	{
		path:'mv',
		loadChildren:'./mv/mv.module#MvModule'
	},
	{
		path:'admin',
		loadChildren:'./admin/admin.module#AdminModule'
	},
	{
		path:'about',
		loadChildren:'./about/about.module#AboutModule'
	},
	{
		path:'',
		component:WelcomeComponent
	},
	{
		path:'**',//fallback router must in the last
		component:WelcomeComponent
	}
];
